﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Jis 网上商城后台系统</title>
<link rel="stylesheet" type="text/css" href="../Content/gray/easyui.css" />
<link rel="stylesheet" type="text/css" href="../Content/icon.css" />
<link rel="stylesheet" type="text/css" href="../Content/site.css" />
<script type="text/javascript" src="../Scripts/jquery-1.6.min.js"></script>
<script type="text/javascript" src="../Scripts/jquery.easyui.min.js"></script>
<style>
#htmlsign {
	width:260px;
	height:150px;
	padding:5px;
	background: #fafafa;
}
</style>
<script type="text/javascript">
$(function(){
	$('#signname').val('admin');
	$('#signpass').val('123');
})
function signin(){
	var signname=$('#signname').val();
	var signpass=$('#signpass').val();
	var win = $.messager.progress({
			title:'请等待',
			msg:'正在读取数据...'
		});
	$.getJSON("/Data/AdminAction.ashx",{type:0,user:signname,pass:signpass},
	function(data){
		$.messager.progress('close');
		if(data.result=='111'){
			$('#htmlsign').window('close');
			window.location.replace("Main.html");
		}else{
			$('#htmlsign').window('open');
			$.messager.show({
				title:'提示',
				msg:data.result,
				timeout:3000,
				showType:'slide'
			});
		}
	});
}
function cleartxt(){
	$('#signname').val('');
	$('#signpass').val('');
}
</script>
</head>
<body style="height:100%;width:100%;overflow:hidden;border:none;" >
<div id="htmlsign" class="easyui-window" title="后台登陆" icon="icon-window">
  <div class="easyui-layout" fit="true">
    <div id="aclt" region="center" border="false" style="padding:10px;background:#fff;border:1px solid #ccc;">
      <table width="240" border="0" align="center" cellpadding="4" cellspacing="0">
        <tr>
          <td width="71"> 帐 户 </td>
          <td width="153"><input type="text" name="signname" class="XInput" style="width:160px;" id="signname" /></td>
        </tr>
        <tr>
          <td> 密 码 </td>
          <td><input type="password" name="signpass" class="XInput" style="width:160px;" id="signpass" /></td>
        </tr>
      </table>
    </div>
    <div region="south" border="false" style="text-align:right;height:30px;line-height:30px;">
    <a class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)" onclick="signin()"> 登 陆 </a>
    <a class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)" onclick="cleartxt()"> 取 消 </a> </div>
  </div>
</div>
</body>
</html>